Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add broadcast functions #22

Merged
merged 5 commits into from
Aug 3, 2022
Merged

Conversation

ncitron
Copy link
Contributor

@ncitron ncitron commented Aug 1, 2022

Adds versions of the deploy functions that will broadcast the tx. This needs to be done since if you try to use the broadcast cheatcode, it will broadcast the deployment of HuffConfig.

One thing to note here is that if you do a raw HuffDeployer.config().set_broadcast(true).deploy("Contract") in your script, it still will broadcast the HuffConfig contract. As far as I can tell this is a bug in Foundry having something to do with the interaction between broadcast and DELEGATECALL, but let me know if there is some other valid reason for this behavior.

fixes #21

Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the PR 🚀

src/HuffDeployer.sol Outdated Show resolved Hide resolved
@ncitron
Copy link
Contributor Author

ncitron commented Aug 3, 2022

Addressed all comments @clabby

Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@refcell refcell merged commit c22e6f7 into huff-language:main Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployer doesn't use correct deployer address
3 participants